package com.jiangjiang.eshop.customer.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.customer.domain.ReturnGoodsWorksheetEntity;
import com.jiangjiang.eshop.customer.dto.ReturnGoodsWorksheetDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author Jianghaowen
 * @Date 2021/9/9
 * @Description: TODO
 * @Version V1.0
 **/
@Mapper(componentModel = "spring")
public interface ReturnGoodsWorksheetConvert {

    ReturnGoodsWorksheetDTO convertEntity2DTO(ReturnGoodsWorksheetEntity entity);

    List<ReturnGoodsWorksheetDTO> convertEntities2DTOList(List<ReturnGoodsWorksheetEntity> entities);

    Page<ReturnGoodsWorksheetDTO> convertEntitiesPage2DTO(Page<ReturnGoodsWorksheetEntity> queryForPage);
}
